The original R interface is not user-friendly. We recommend using the RStudio IDE here
Just download the free version!
Open RStudio
1.3 Data type
1.3.1 Matrix & Array
1.3.2 Data frame
1.3.3 List
1.4 Data input and output
1.5 For loop
1.6 If statement
1.7 R function
1.8 Plots
1.9 Useful packages in the class
1.10 Project management
2 Decision tree
2.1 Agenda
Introduction of Amua
Creating a decision tree using Amua
Example
Exporting Amua decision tree to R script
Prepare the R decision tree from Amua for further analyses
For a simple decision tree, we can draw the tree easily. As the decision tree grows, there is software helping you draw the tree such as TreeAge and Amua. In this class, we use Amua because it is free. We will show how to use Amua to build a decision tree and export the tree to R script for CEA analysis.
2.2 Install Amua
Follow the instruction here to install Amua. Be aware of the difference between Mac and Windows users! After you install Amua, remember where you store the software.
2.3 Create a decision tree
2.3.1 Open the Amua.jar.
2.3.2 Decision, chance, terminal nodes, and decision tree
2.3.3 Parameterization
2.3.4 Adding more outcomes
2.3.5 Change analysis
2.3.6 Save the model and export the tree to R code